package com.victor.entity.partner.food;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.victor.entity.activity_tuikuan.ActJifen;
import com.victor.entity.activity_tuikuan.ActManjian;
import com.victor.entity.activity_tuikuan.ActMiaosha;
import com.victor.entity.activity_tuikuan.ActTuangou;
import com.victor.entity.activity_tuikuan.TuikuanSetup;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 美食套餐表
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "food_meal")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class FoodMeal {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "m_id", unique = true, nullable = false, length = 11)
	private Integer m_id;

	@Column(name = "p_id", length = 50)
	private String p_id;// 商家id

	@Column(name = "f_name", length = 50)
	private String f_name;// 美食套餐名称

	@Column(name = "price", length = 50)
	private String price;// 美食套餐价格

	@Column(name = "number", length = 50)
	private String number;// 总数量

	@Column(name = "pingjuntime", length = 50)
	private String pingjuntime;// 平均用餐时间

	@Column(name = "detailed", length = 50)
	private String detailed;// 美食套餐详细

	@Column(name = "notestobuy", length = 50)
	private String notestobuy;// 美食购买须知

	@Column(name = "video", length = 50)
	private String video;// 介绍视频

	@Column(name = "view360_photo", length = 50)
	private String view360_photo;// 360全景图

	@Column(name = "cover_photo", length = 50)
	private String cover_photo;// 封面图片

	@Column(name = "upordowntype", length = 50)
	private String upordowntype;// 上下架状态 0 上架 1下架
	

	@Transient
	private List<FoodMealDayUse> foodMealDayUses; // 每日可售数量

	@Transient
	private List<FoodMealPhoto> foodMealPhotos;// 多张美食套餐介绍图片
	
	/** 退款活动相关 */
	@Column(name = "if_tuikuan", length = 50)
	private String if_tuikuan;// 是否可以退款 1不可退 2 可以随时退 3 条件退款

	@Column(name = "if_join_activity", length = 50)
	private String if_join_activity;// 是否参加活动

	@Column(name = "join_activity_type", length = 50)
	private String join_activity_type;// 参加活动类型 1 团购活动 2 秒杀活动 3 满减活动 4 积分兑换活动
	
	@Transient
	private TuikuanSetup tuikuanSetup;// 退款设置信息

	@Transient
	private ActTuangou actTuangou;// 团购表

	@Transient
	private List<ActMiaosha> actMiaoshas;// 商品参加的秒杀活动

	@Transient
	private List<ActManjian> actManjians;// 满减活动list
	
	@Transient
	private ActJifen actJifen;// 积分表

}
